package com.wind.Model01_创建模式.创建模式03_建造者模式;

public class BuilderImpl implements Builder {
    @Override
    public void builderPartA() {
        System.out.println("这是车轮~~");
    }

    @Override
    public void builderPartB() {
        System.out.println("这是方向盘");
    }

    @Override
    public void builderPartC() {
        System.out.println("这是发动机");
    }

    @Override
    public Product getResult() {
        BuilderImpl builder = new BuilderImpl();
        Product product = new Product(builder);
        product.construct();
        System.out.println("组装完成~~！！！");
        return product;
    }
}
